package com.share.example.stock.web;

import com.share.common.common.Result;
import com.share.example.stock.service.IStockBaseInfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author author
 * @since 2023-06-10
 */
@RestController
public class CommonController {
    @Autowired
    private IStockBaseInfoService iStockBaseInfoService;

    @ApiOperation("重新加载 基础信息")
    @RequestMapping("/reload/stockInfo")
    public Result reloadStockInfo() {
        Object obj = iStockBaseInfoService.initStockInfo();
        return Result.success(obj);
    }
}
